package org.jeecg.modules.wlhy.shipping.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.wlhy.shipping.entity.HyOrdosReport;
import org.jeecg.modules.wlhy.shipping.entity.HyShippingParkReport;
import org.jeecg.modules.wlhy.shipping.mapper.HyOrdosReportMapper;
import org.jeecg.modules.wlhy.shipping.mapper.HyShippingParkReportMapper;
import org.jeecg.modules.wlhy.shipping.service.IHyOrdosReportService;
import org.jeecg.modules.wlhy.shipping.service.IHyShippingParkReportService;
import org.springframework.stereotype.Service;

/**
 * @Description: hy_shipping_note_history
 * @Author: jeecg-boot
 * @Date:   2021-04-30
 * @Version: V1.0
 */
@Service
public class HyOrdosReportServiceImpl extends ServiceImpl<HyOrdosReportMapper, HyOrdosReport> implements IHyOrdosReportService {

    @Override
    public HyOrdosReport getByShippingNoteNumber(String shippingNoteNumber) {

        HyOrdosReport hyOrdosReport = this.getOne(new LambdaQueryWrapper<HyOrdosReport>()
                .eq(HyOrdosReport::getShippingNoteNumber, shippingNoteNumber));
        return hyOrdosReport;
    }
}
